<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:if test="#reviewRecord == null">新增</s:if><s:else>编辑</s:else>评审记录</title>
<link href="<%= request.getContextPath() %>/css/main.css" media="screen" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/css/simple.css" media="screen" rel="stylesheet" type="text/css" />
<style type="text/css">
div.page {
	text-align: center;
}
table.editor-layout {
	width: 70%;
	border: 1px solid #CCCCCC;
} 
table.editor-layout td {
	vertical-align: top;
} 

table.editor-layout input, textarea {
	width: 90%;
}
table.editor-layout input.small-number {
	width: 4em;
}
</style>
</head>
<body>
	<div id="page">
		<s:form id="review-record-editor" cssClass="review-record-editor" namespace="/reviewrecord" action="save" method="post" >	
			<s:hidden name=""/>
			<table class="editor-layout">
				<s:if test="reviewRecord.id != 0">
					<tr><td width="100px">编号</td><td><s:property value="reviewRecord.id"/></td></tr>
				</s:if>
				<tr><td width="100px">文件/类</td><td><s:textfield name="reviewRecord.file" maxlength="200" /></td></tr>
				<tr><td width="100px">修订</td><td><s:textfield name="reviewRecord.revision" maxlength="6" /></td></tr>
				<tr><td width="100px">行号</td><td><s:textfield name="reviewRecord.lineFrom" maxlength="4" cssClass="small-number" />-<s:textfield name="reviewRecord.lineTo" maxlength="4" cssClass="small-number" /></td></tr>
				<tr><td width="100px">标签</td><td><s:textfield name="reviewRecord.tags" /></td></tr>
				<tr><td width="100px">注释</td><td><s:textarea rows="10" name="reviewRecord.comment" /></td></tr>
				<tr><td width="100px"></td><td></td></tr>
				<tr><td width="100px"></td><td></td></tr>
			</table>
			<s:if test="reviewRecord == null">
			<input type="submit" name="" value="保存并新建">
			</s:if>
			<s:else>
			<input type="submit" name="" value="保存"><input type="reset">
			</s:else>
			<a href="<s:url namespace="/reviewrecord" action="list"/>">返回列表</a>
		</s:form>
	</div>
</body>
</html>